import Mock from 'mockjs'

Mock.mock(process.env.VUE_APP_API_BASE_URL + 'user/get_favorite', 'post', (request) => {
    return{
        status: {
            code: 0,
            message: "用户收藏信息获取成功"
        },
          data: {
            total:1,
            favoriteContent:[
            {
                paper_id: 1,
                title: "Calculation of prompt diphoton production cross sections at Tevatron and LHC energies",
                authors:[
                    {
                        author_id:1,
                        author_name:"C. Bal\'azs"
                    },
                    {
                        author_id:2,
                        author_name:"E. L. Berger"
                    },
                    {
                        author_id:3,
                        author_name:"P. M. Nadolsky"
                    },
                    {
                        author_id:4,
                        author_name:"C.-P. Yuan"
                    }
                ],
                update_date: "2008-11-26",
                favorite: true
            },
            {
                paper_id: 8,
                title: "Implications of CTEQ global analysis for collider observables",
                authors:[
                    {
                        author_id:3,
                        author_name:"P. M. Nadolsky"
                    },
                    {
                        author_id:19,
                        author_name:"H.-L. Lai"
                    },
                    {
                        author_id:20,
                        author_name:"Q.-H. Cao"
                    },
                    {
                        author_id:21,
                        author_name:"J. Huston"
                    }
                    ],
                update_date: "2008-11-26",
                favorite: true
            },
                {
                    paper_id: 9,
                    title: "Progress in CTEQ/TEA global QCD analysis",
                    authors:[
                        {
                            author_id:3,
                            author_name:"P. M. Nadolsky"
                        },
                        {
                            author_id:20,
                            author_name:"J. Huston"
                        },
                        {
                            author_id:19,
                            author_name:"H.-L. Lai"
                        },
                        {
                            author_id:4,
                            author_name:"C.-P. Yuan"
                        }
                        ],
                    update_date: "2009-09-29",
                    favorite: true
                }
            ]
          }
    }
})